package com.sky.service;

import com.sky.result.Result;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

public interface ReportService {
    /**
     * 营业额统计
     *
     * @param begin
     * @param end
     * @return
     */
    Result turnoverStatistics(LocalDate begin, LocalDate end);

    /**
     * 用户统计
     *
     * @param begin
     * @param end
     * @return
     */
    Result userStatistics(LocalDate begin, LocalDate end);

    /**
     * 订单统计
     *
     * @param begin
     * @param end
     * @return
     */
    Result ordersStatistics(LocalDate begin, LocalDate end);

    /**
     * 查询销量排名top10接口
     *
     * @param begin
     * @param end
     * @return
     */
    Result top10(LocalDate begin, LocalDate end);
    /**
     * 营业数据导出
     *
     * @param response
     * @return
     */
    void export(HttpServletResponse response);
}
